package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class OrdersAndAddress {

    @TableId(value = "o_id",type = IdType.AUTO)
    private Integer oId;
    @TableField("o_no")
    private String oNo;
    @TableField("o_good_price")
    private Double oGoodPrice;
    @TableField("o_num")
    private Integer oNum;
    /**
     * 0表示未支付,1表示已支付, 2表示取消,3表示过期,4表示申请退款状态,5表示退款中,6退款成功,7已完成, 8发货中
     */
    @TableField("o_status")
    private Integer oStatus;
    /**
     *
     * 0待评价,1表示已评价
     */
    @TableField("o_appraise_status")
    private Integer oAppraiseStatus;
    /**
     * 订单所属的用户
     */
    @TableField("o_user_id")
    private Integer oUserId;
    /**
     * 订单创建日期
     */
    @TableField("o_create_time")
    private Date oCreateTime;
    /**
     * 付款日期
     */
    @TableField("o_pay_time")
    private Date oPayTime;
    /**
     * 商品id
     */
    @TableField("o_good_id")
    private String oGoodId;
    /**
     * 商品的图片
     */
    @TableField("o_good_img")
    private String oGoodImg;
    /**
     * 商品的描述信息
     */
    @TableField("o_good_title")
    private String oGoodTitle;

    @TableField("o_address")
    private String oAddress;


    public String getoAddress() {
        return oAddress;
    }

    public void setoAddress(String oAddress) {
        this.oAddress = oAddress;
    }

    public OrdersAndAddress() {
    }

    @Override
    public String toString() {
        return "OrdersAndAddress{" +
                "oId=" + oId +
                ", oNo='" + oNo + '\'' +
                ", oGoodPrice=" + oGoodPrice +
                ", oNum=" + oNum +
                ", oStatus=" + oStatus +
                ", oAppraiseStatus=" + oAppraiseStatus +
                ", oUserId=" + oUserId +
                ", oCreateTime=" + oCreateTime +
                ", oPayTime=" + oPayTime +
                ", oGoodId='" + oGoodId + '\'' +
                ", oGoodImg='" + oGoodImg + '\'' +
                ", oGoodTitle='" + oGoodTitle + '\'' +
                ", oAddress='" + oAddress + '\'' +
                '}';
    }

    public Integer getOId() {
        return oId;
    }

    public void setOId(Integer oId) {
        this.oId = oId;
    }

    public String getONo() {
        return oNo;
    }

    public void setONo(String oNo) {
        this.oNo = oNo;
    }

    public Double getOGoodPrice() {
        return oGoodPrice;
    }

    public void setOGoodPrice(Double oGoodPrice) {
        this.oGoodPrice = oGoodPrice;
    }

    public Integer getONum() {
        return oNum;
    }

    public void setONum(Integer oNum) {
        this.oNum = oNum;
    }

    public Integer getOStatus() {
        return oStatus;
    }

    public void setOStatus(Integer oStatus) {
        this.oStatus = oStatus;
    }

    public Integer getOAppraiseStatus() {
        return oAppraiseStatus;
    }

    public void setOAppraiseStatus(Integer oAppraiseStatus) {
        this.oAppraiseStatus = oAppraiseStatus;
    }

    public Integer getOUserId() {
        return oUserId;
    }

    public void setOUserId(Integer oUserId) {
        this.oUserId = oUserId;
    }

    public Date getOCreateTime() {
        return oCreateTime;
    }

    public void setOCreateTime(Date oCreateTime) {
        this.oCreateTime = oCreateTime;
    }

    public Date getOPayTime() {
        return oPayTime;
    }

    public void setOPayTime(Date oPayTime) {
        this.oPayTime = oPayTime;
    }

    public String getOGoodId() {
        return oGoodId;
    }

    public void setOGoodId(String oGoodId) {
        this.oGoodId = oGoodId;
    }

    public String getOGoodImg() {
        return oGoodImg;
    }

    public void setOGoodImg(String oGoodImg) {
        this.oGoodImg = oGoodImg;
    }

    public String getOGoodTitle() {
        return oGoodTitle;
    }

    public void setOGoodTitle(String oGoodTitle) {
        this.oGoodTitle = oGoodTitle;
    }

    public OrdersAndAddress(Integer oId, String oNo, Double oGoodPrice, Integer oNum, Integer oStatus, Integer oAppraiseStatus, Integer oUserId, Date oCreateTime, Date oPayTime, String oGoodId, String oGoodImg, String oGoodTitle) {
        this.oId = oId;
        this.oNo = oNo;
        this.oGoodPrice = oGoodPrice;
        this.oNum = oNum;
        this.oStatus = oStatus;
        this.oAppraiseStatus = oAppraiseStatus;
        this.oUserId = oUserId;
        this.oCreateTime = oCreateTime;
        this.oPayTime = oPayTime;
        this.oGoodId = oGoodId;
        this.oGoodImg = oGoodImg;
        this.oGoodTitle = oGoodTitle;
    }
}
